{extend name='base' /}
{block name='main'}
<div class="tpl-content-wrapper">
    <div class="tpl-content-page-title">
        分配权限
    </div>
    <ol class="am-breadcrumb">
        <li><a href="#" class="am-icon-home">首页</a></li>
        <li><a href="#">管理员管理</a></li>
        <li class="am-active">分配权限</li>
    </ol>
    <div class="tpl-portlet-components">
        <form action="/Adminuser" method="post">
            <div class="tpl-block">
                <div class="am-g">
                    <div class="am-u-sm-12 am-u-md-6">
                        <div class="am-btn-toolbar">
                            <div class="am-btn-group am-btn-group-xs">
                                <button type="submit" class="am-btn am-btn-default am-btn-secondary"><span class="am-icon-save"></span> 保存</button>
                                <a href="{:url('admin/Adminuser/index')}" class="am-btn am-btn-default am-btn-success"><span class="am-icon-trash-o"></span> 返回</a>
                            </div>
                        </div>
                    </div>
                </div>
                <hr>
                <div class="am-g">
                    <div class="am-u-sm-12">
                        <input type="hidden" name="uid" value="{$id}">
                        {volist name='data' id='role'}
                        <a style="color:#485a6a;margin-right:10px; "><label>
                            <input type="checkbox" name="role[]"  value="{$role.id}" {if in_array($role.id,$userrole)} checked {/if}>{$role.name}
                        </label></a>
                        {/volist}
                        {/block}


                    </div>

                </div>
            </div>
        </form>

        <div class="tpl-alert"></div>
    </div>










</div>

